#!/usr/bin/python3

import urllib.parse
from pyquery import PyQuery as pq

url = "https://www.xiaoshuozu8.com/shu/49107/"

o = urllib.parse.urlparse(url)

# h = urllib.parse.splithost(url)
# print(h)

baseUrl = o.scheme + "://" + o.netloc
print(baseUrl)

doc = pq(url=url)
print(doc)

itemAs = doc('dd a')

for itemA in itemAs:
    # print(itemA)
    # dir(itemA)
    print(baseUrl + itemA.attrib['href'])


